package edu.kjxy.demo0326;

import java.util.Arrays;

public class demo03 {

	public static void main(String[] args) {
		int[] a = {1, 4, 3, 2, 6, 0, 8, 9, 5};
		Arrays.sort(a);
		System.out.println(Arrays.toString(a));
		
		int[] b = Arrays.copyOf(a, a.length);
		for (int i = 0; i < b.length; i++) {
			b[i]++;
		}
		
		System.out.println(Arrays.toString(a));
		System.out.println(Arrays.toString(b));
	}

}
